﻿@model Model.AppUserList
@{
    ViewBag.Title = "ActionInfo";
    Layout = "~/Views/Shared/_JQBaseLayOut.cshtml";
}
@using Model

@section JQscriptSection{
    <script type="text/javascript">
        $(document).ready(function () {
            var curr_time = new Date();
            var strDate = curr_time.getFullYear() + "-";
            strDate += curr_time.getMonth() + 1 + "-";
            strDate += curr_time.getDate();
            $("#StartDate").datebox("setValue", strDate);
            $("#EndDate").datebox("setValue", strDate);
            InitGrid();
        });

        function InitGrid() {
            var typeName = $('#typeName').val();
            var startDate = $('#StartDate').datebox('getValue');
            var endDate = $('#EndDate').datebox('getValue');
            var txtOpcontent = $('#opcontent').val();
            queryParams = {
                typeName: typeName,
                startDate: startDate,
                endDate: endDate,
                opcontent: txtOpcontent
            }
            HandleData.InitDataGrid('dg', '/ActionInfo/InitJsonResult', 'toolbar', queryParams, 'ACTIONID',true);
        }
    </script>
}

<body style="background-color: ButtonFace; font-size: 17px">
    <div class="easyui-panel" title="查询条件" style="height: 130px; padding: 5px; background: #fafafa; width: 1700px;">
        <form id="query" method="post">
            <table>
                <tr>
                    <td>模块名称:
                    </td>
                    <td>
                        <input id="typeName" name="typeName" style="width: 154px" />
                    </td>
                    <td>操作内容/ID:
                    </td>
                    <td>
                        <input id="opcontent" name="opcontent" style="width: 154px" />
                    </td>
                    <td>创建时间:
                    </td>
                    <td>
                        <input class="easyui-datebox" id="StartDate" name="StartDate" style="width: 140px;" />
                    </td>
                    <td>~：
                    </td>
                    <td>
                        <input class="easyui-datebox" id="EndDate" name="EndDate" style="width: 140px;" validtype="compareDate['#StartDate']" />
                    </td>
                    <td></td>
                    <td>
                        <a id="btnSerach" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="InitGrid()">查询</a>
                    </td>

                </tr>
            </table>
        </form>

    </div>
    <div style="min-height: 720px; width: 1700px;">
        <table id="dg" title="日志类型信息" style="min-height: 600px;">
            <thead>
                <tr>
                    <th data-options="field:'PROJECTNAME',width:50">项目</th>
                    <th data-options="field:'TYPENAME',width:50">操作模块</th>
                    <th data-options="field:'OPERATION',width:50">操作类型</th>
                    <th data-options="field:'OPCONTENT',width:150">操作内容</th>
                    <th data-options="field:'OPERATIONOLD',width:150">修改前</th>
                    <th data-options="field:'OPERATIONNEW',width:150">修改后</th>
                    <th data-options="field:'USERNAME',width:50">操作人</th>
                    <th data-options="field:'CREATEDATE',width:100">操作时间</th>
                </tr>
            </thead>
        </table>
    </div>

    @Html.Partial("~/Views/Shared/_PartialToolbar.cshtml", new Toolbar
{
    GridName = "dg",
    GridType = "datagrid",
    ToolbarName = "toolbar",
    FunctionModule = new Dictionary<string, List<FunctionModule>>()
    {
        {"Function",new List<FunctionModule>()
            {
              new FunctionModule(){Name = "Add",IsEnable =false },
              new FunctionModule(){Name = "Edit",IsEnable =false },
              new FunctionModule(){Name = "Remove",IsEnable =false },
              new FunctionModule(){Name = "Reload",IsEnable =true },
              new FunctionModule(){Name = "Collapse",IsEnable =false },
              new FunctionModule(){Name = "Exporter",IsEnable =false },
              
            }
        }
    }
})

</body>


